package com.gp.gback.system.common.util;

/**
 * Created by kongryan on 16/12/13.
 */
public class NumberUtil {

    public static String prefixZeroFill(String org,Integer minSize){
        String rs = "00000000000000";
        if(org.length() > minSize){
            rs = org;
        }else{
            rs = rs+org;
            rs = rs.substring(rs.length() - minSize, rs.length());
        }
        return rs;
    }

    public static void main(String[] args) {
        System.out.println(prefixZeroFill("vvv",4));
    }
}
